sass each index

65

$i: 0;
@each $food in $top-foods {
  $i: $i + 1;
  &:nth-child(#{$i}){
    display: block;
  }
}

Comments

Submit
0 Comments